package io.command;

import card.Cardset;
import io.*;
import io.command.result.IOResult;

/**
 * Command for display hand's cards
 * 
 * 
 * @version 1.0.2
 */
public class HandDisplayCommand extends IOCommand {

	private Cardset hand;
	private String playerName;

	public HandDisplayCommand(IIO io, Cardset hand, String playerName) {
		super(io);
		this.hand = hand;
		this.playerName = playerName;
	}

	/**
	 * Command details
	 */
	@Override
	public IOResult execute() {
		io.println("Player " + playerName + "'s hand is shown below: ");
		io.print(hand);
		return null;
	}

}
